package com.learn.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * @author DJJ_F
 * @version 1.0
 * @date 2025/02/07
 * @description
 */
@Controller
public class IndexController {
    @GetMapping("/index")
    public String index() {
        System.out.println("index()");
        return "index";
    }
    @GetMapping("/ok")
    @ResponseBody
    public String ok() {
        System.out.println("ok()");
        return "ok";
    }
}
